package com.jiexinyun.logback;

import org.slf4j.LoggerFactory;
import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.Logger;

public class LogLevelChecker {

    public static void main(String[] args) {
        // 获取根Logger
        Logger rootLogger = (Logger) LoggerFactory.getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME);
        System.out.println("Root Logger Level: " + rootLogger.getEffectiveLevel());

        // 检查特定包的Logger
        Logger yourPackageLogger = (Logger) LoggerFactory.getLogger("com.your.package");
        System.out.println("Your Package Logger Level: " + yourPackageLogger.getEffectiveLevel());
    }

}
